<!DOCTYPE html>
<html lang="zh-cn">
<head>
	<meta charset="UTF-8">
	<title><?=$sys['web_site_title'];?><?=isset($page_title)?'-'.$page_title:'';?></title>
    <meta name='keywords' content='<?=$sys['web_site_keywords'];?>'>
    <meta name='description' content='<?=$sys['web_site_description'];?>'>
	<link rel="stylesheet" type="text/css" href="/static/vendor/layui/css/layui.css?v=<?=env('version')?>"/>
	<link rel="stylesheet" type="text/css" href="/static/shop/css/style.css?v=<?=env('version')?>" />
	<link rel="stylesheet" type="text/css" href="/static/shop/css/tool.css?v=<?=env('version')?>"/>
    <script src="https://cdn.bootcss.com/jquery/1.11.2/jquery.min.js?v=<?=env('version')?>"></script>
	<script type="text/javascript" src="/static/vendor/layui/layui.js?v=<?=env('version')?>"></script>
	<script type="text/javascript" src="/static/vendor/function.js?v=<?=env('version')?>"></script>
    <script type="text/javascript" src="/static/vendor/edit/ueditor.config.js?v=<?=env('version')?>"></script>
    <script type="text/javascript" src="/static/vendor/edit/ueditor.all.js?v=<?=env('version')?>"></script>
</head>
<body>
	<div class="layui-layout layui-layout-admin">
		<div class="layui-header">
			<div class="layui-container">
			<div class="layui-logo"><img src="<?=isset($com['img']['left_top_logo']['pic'])?$com['img']['left_top_logo']['pic']:'/static/default.png'?>"/></div>
			<ul class="layui-nav layui-layout-left">
				<li class="layui-nav-item">
					<a href="/">首页</a>
				</li>
				<li class="layui-nav-item">
					<a href="/index/nav?id=goods">商品管理</a>
				</li>
				<li class="layui-nav-item">
					<a href="/index/nav?id=order">订单管理</a>
				</li>
				<li class="layui-nav-item">
					<a href="/index/nav?id=wuliu">物流管理</a>
				</li>
				<li class="layui-nav-item">
					<a href="/index/nav?id=shop">店铺设置</a>
				</li>
			</ul>
			<ul class="layui-nav layui-layout-right">
				<li class="layui-nav-item">
					<a href="/publics/logout">退了</a>
				</li>
			</ul>
			</div>

		</div>
		<div class="layui-container layui-row" id="hcb">
			<div class="layui-hide-xs layui-col-sm4 layui-col-md2 o-hidden">
				<div class="layui-side-scroll layui-bg-gray" id="sub_nav">

					<?php if("$c/$a"=="index/init"):?>
						<div class="column-title" id="main-nav">
							<img class="nav_icon" src="/static/shop/img/store_icon.png"/>
					        <h2 class="nav_h2 t_c">店铺</h2>
					    </div>
					<?php else:?>
					<ul class="layui-nav layui-nav-tree mt_2">
						<?php foreach(get_cookie_arr('nav') as $v):
							$nav = explode('|',$v);
						?>
						<li class="layui-nav-item <?php if($nav[0]==$_SERVER['REQUEST_URI']):?>layui-this<?php endif;?>">
							<a href="<?=$nav[0]?>"><?=$nav[1]?></a>
						</li>
						<?php endforeach;?>
					</ul>
					<?php endif;?>
				</div>
			</div>
			<div class="ym_main layui-col-xs12 layui-col-sm8 layui-col-md10">
				<?php include_once $inc_sub_template;?>
			</div>
		</div>
	</div>
	<div class="footer">
		<p class="gray1 flex_vc flex_lc">商家管理后台</p>
	</div>
</body>
<script>
layui.use('element', function(){
  var element = layui.element;
});
</script>
</html>
